package org.example.cassell_client.service.fallback;

import com.github.pagehelper.PageInfo;
import jakarta.servlet.http.HttpServletRequest;
import lombok.extern.slf4j.Slf4j;
import org.example.cassell_client.service.UserServiceClient;
import org.example.entity.Base.Result;
import org.springframework.cloud.openfeign.FallbackFactory;

import java.util.List;
import java.util.Map;

@Slf4j
public class UserClientFallbackFactory implements FallbackFactory<UserServiceClient> {
    @Override
    public UserServiceClient create(Throwable cause) {
        return new UserServiceClient() {

            @Override
            public Result<PageInfo> list(int PageNumber, int PageSize) {
                return null;
            }

            @Override
            public List userl() {
                return List.of();
            }

            @Override
            public String getUserInfo(String userEmail) {
                return "";
            }

            @Override
            public String getUserPicture(String userEmail) {
                return "";
            }

            @Override
            public String updatePassWord(String Email, String UserPassWord) {
                return "";
            }

            @Override
            public String updateUser(Map<String, String> body) {
                return "";
            }


        };
    }
}
